<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="common_header(title)">
    <meta charset="UTF-8">
    <title th:replace="${title}"></title>
    <link rel="stylesheet" type="text/css" href="/css/hy.css">
    <script type="text/javascript" src="/js/index.js"></script>
    <script type="text/javascript" src="/js/hy.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
</head>
<body class="layui-layout-body" th:fragment="common_body(main)">
<div class="hy-wrapper">
    <div class="hy-head">
        <!--        <h2 th:text="${ejcd}">出库管理</h2>
                <h3 th:text="${sjcd}">拣货单</h3>-->
        <p>
            <span><a href="/">ERP首页</a></span>
            <span><b>欢迎:<b th:text="${T(com.b2c.erp.DataConfigObject).getInstance().getLoginUserName()}" style="color: red"></b></b></span>
            <span th:if="${T(com.b2c.erp.DataConfigObject).getInstance().getLoginUserGroupId() == 1}"><a href="/system/tdgl">团队管理</a></span>
            <span><a href="/system/upd_manage_user_pwd">修改密码</a></span>
            <span><a href="/login">退出</a></span>
        </p>
    </div>
    <div class="hy-side">
        <div class="hy-menu">
            <h2><img src="/images/logo.png"></h2>
            <ul>
                <li th:class="${pView eq item.getPermissionKey()} ? 'active' : ''" th:each="item:${T(com.b2c.erp.DataConfigObject).getInstance().getMenuList()}" th:if="${item.getIsMenu()==1}">
                    <h3 th:class="${item.getPermissionKey()}"><a th:href="${item.getUrl()}"><i></i>[[${item.getName()}]]</a></h3>
                    <div>
                        <p th:class="${view eq chirdItem.getPermissionKey()} ? 'active' : ''" th:each="chirdItem:${item.getChirdMenus()}" th:if="${chirdItem.getIsMenu()==1}">
                            <img th:if="${#strings.isEmpty(chirdItem.icon)==false}" th:src="${chirdItem.icon}" width="20px" height="20px">
                            <a th:href="${chirdItem.getUrl()}" th:text="${chirdItem.getName()}">新增采购单</a>
                            
                        </p>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <div class="hy-main">
        <!-- 不同部分 start -->
        <div class="layui-body" th:replace="${main}"></div>
        <!-- 不同部分 end -->
    </div>
</div>
</body>
</html>
